import { createApp } from "vue";
// 添加这一行导入路由守卫
import "@/utils/permission";
import { Button } from "vant";
import "vant/lib/index.css";
import router from "./router";
import { Tabbar, TabbarItem } from "vant";
import App from "./App.vue";
import { Swipe, SwipeItem } from "vant";
import store from "@/store";
import { Grid } from "vant";
import { GridItem } from "vant";
import { Cascader } from "vant";
import { Icon } from "vant";
import {
  Field,
  CellGroup,
  Cell,
  Popup,
  Empty,
  Form,
  Sidebar,
  SidebarItem,
  Tab,
  Tabs,
  NavBar,
  Dialog,
} from "vant";
import { PullRefresh, List } from "vant";
import { RadioGroup, Radio } from "vant";
import { Checkbox, CheckboxGroup } from "vant";
import {
  Row,
  Col,
  Progress,
  Loading,
  Toast,
  Notify,
  Calendar,
  Search,
  Tag,
  Pagination,
  Card,
  Divider,
} from "vant";
import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant';

const app = createApp(App);

app.use(ActionBar);
app.use(ActionBarIcon);
app.use(ActionBarButton);
app.use(Divider);
app.use(Card);
app.use(Pagination);
app.use(Tag);
app.use(Search);
app.use(Calendar);
app.use(Progress);
app.use(Checkbox);
app.use(CheckboxGroup);
app.use(Radio);
app.use(RadioGroup);
app.use(Dialog);
app.use(NavBar);
app.use(Tab);
app.use(Tabs);
app.use(Sidebar);
app.use(SidebarItem);
app.use(Form);
app.use(Icon);
app.use(Cascader);
app.use(Button);
app.use(Tabbar);
app.use(TabbarItem);
app.use(router);
app.use(Swipe);
app.use(SwipeItem);
app.use(Grid);
app.use(GridItem);
app.use(Field);
app.use(CellGroup);
app.use(Popup);
app.use(Cell);
app.use(PullRefresh);
app.use(List);
app.use(Empty);
app.use(Row);
app.use(Col);
app.use(Loading);
app.use(Toast);
app.use(Notify);
app.use(store);
app.mount("#app");
